#ifndef _BASE_APP
#define _BASE_APP


#include "ofMain.h"
#include "ruby.h"

static int id_setup = rb_intern("setup");
static int id_update = rb_intern("update");
static int id_draw = rb_intern("draw");
static int id_exit = rb_intern("exit");
static int id_keyPressed = rb_intern("keyPressed");
static int id_keyReleased = rb_intern("keyReleased");
static int id_mouseMoved = rb_intern("mouseMoved");
static int id_mouseDragged = rb_intern("mouseDragged");
static int id_mousePressed = rb_intern("mousePressed");
static int id_mouseReleased = rb_intern("mouseReleased");

class baseApp : public ofSimpleApp {
	
	public:
		
		void setup();
		void update();
		void draw();
		void exit();
		
		void keyPressed(int key);
		void keyReleased(int key);
		
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased();

		VALUE obj;
};

#endif
	
